package cn.itsource.order.mapper;


import cn.itsource.order.domain.OrderAdopt;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

public interface OrderAdoptMapper extends Mapper<OrderAdopt> {


    @Select("select * from t_order_adopt where order_sn = #{orderSn}")
    OrderAdopt findByOrderSn(String orderSn);

    @Select("select * from t_order_adopt where state = 0 and last_confirm_time < #{time}")
    List<OrderAdopt> findCancelOrder(String time);
}
